/**
 * Created by gl on 2017/4/15.
 */
public class LingXing {
    public static void main(String[] args){
        int n = 9;
        for (int i = 0; i < n / 2; i++) {
            for (int j = 0; j < n / 2 - i; j++) {
                System.out.print(" ");
            }
            for (int k = 0; k < i + 1; k++) {
                System.out.print("* ");
            }
            System.out.println();
        }
        for (int i = 0; i < n / 2 + 1; i++) {
            System.out.print("* ");

        }
        System.out.println();
        for (int i = 0; i < n / 2; i++) {
            for (int j = 0; j < i + 1; j++) {
                System.out.print(" ");
            }
            for (int k = 0; k < n / 2 - i; k++) {
                System.out.print("* ");
            }
            System.out.println();
        }

    }
}
